package de.mk.swing;

import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

import de.mk.model.Picture;

public class PictureLabel extends JLabel {

	static ImageIcon coveredIcon = new ImageIcon();
	
	private Picture picture = null;

	private Image image = null;

	public PictureLabel(Picture picture, ImageIcon imgIcon) {
		super(imgIcon);
		this.picture = picture;
		this.addMouseListener(picture);
	}

	public Picture getPicture() {
		return picture;
	}

	public void setPicture(Picture picture) {
		this.picture = picture;
	}

	public Image getImage() {
		return image;
	}

	public void setImage(Image image) {
		this.image = image;
	}

}
